<html>
<head>
<title>HTML PARSER</title>
</head>
<body>
<h1><center>HTML PARSER</center></h1>
<center><script type="text/javascript">
function $(id){ return document.getElementById(id) } var char2entity = { "'" : '&#39;', '"' : '&quot;',  '<' : '&lt;', '>' : '&gt;',  '&' : '&amp;'}; function encode_entities(str) {   var rv = '';  for (var i = 0; i < str.length; i++) {    var ch = str.charAt(i);    rv += char2entity[ch] || ch;  }   return rv;} function do_encode(e){  $('dst').value = encode_entities(e.value)}
</script>
<b>Enter Code:</b>
<textarea cols="40" onchange="do_encode(this)" onkeyup="do_encode(this)" rows="10" style="font-family: monospace; height: 10em; width: 40em;"></textarea>

<hr color="white"/>



<b>Parsed Code</b>
<textarea cols="40" id="dst" onclick="this.select()" onfocus="this.select()" readonly="readonly" rows="10" style="font-family: monospace; height: 10em; width: 40em;"></textarea></p>
<table border='0' cellspacing='5'><tr><td>

<div class='adsense' style=' padding:10px;margin-bottom:10px;margin-top:5px; background:#fff url(http://2.bp.blogspot.com/_v5IxGTiMTD8/S-fvVo_2M5I/AAAAAAAABYU/BefAQpEmaCQ/s1600/grad.png) top repeat-x; border:1px solid #DEDBD1;-moz-border-radius:5px;-webkit-border-radius:5px;'>
<div align='left' style='padding:10px 10px 0 10px;'> </center>
</body>
</html>
